* lisp/thingatpt.el (thing-at-point): Accept optional second argument
authorSam Steingold <sds@gnu.org>
Wed, 8 May 2013 15:10:17 +0000 (11:10 -0400)
committerSam Steingold <sds@gnu.org>
Wed, 8 May 2013 15:10:17 +0000 (11:10 -0400)
commit474fa77ab747234478d2060f164b7c424ade5547
tree061ba595f51685ef18c14a7d93f90932596db0e3
parent73daab1c3c7669feea30b7720a7538660add8ec4
* lisp/thingatpt.el (thing-at-point): Accept optional second argument
NO-PROPERTIES to strip the text properties from the return value.
* lisp/net/browse-url.el (browse-url-url-at-point): Pass NO-PROPERTIES
to `thing-at-point' instead of stripping the properties ourselves.
Also, when `thing-at-point' fails to find a url, prepend "http://"
to the filename at point on the assumption that the user is
pointing at something like gnu.org/gnu.
lisp/net/browse-url.el
lisp/thingatpt.el